package team.seekers.hula.question.questionUser.entity.dao;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import team.seekers.hula.island.islandUser.entity.dao.IslandUserDOField;

/**
 * <p>
 * 用户关注一个问题
 * </p>
 *
 * @author hbc
 * @since 2021-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="QuestionUser对象", description="用户关注一个问题")
@TableName(value = "question_user")
public class QuestionUserDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String questionId;

    private String userId;

    private Integer role;

    /**
     * 在这个问题获得的hula分
     */
    private Double hulaScore;

    private Integer isCollected;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;




}
